package com.zhentao.controller;

import com.zhentao.model.common.admin.dto.AdminLoginDto;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.AdminUserLoginService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/login")
@Api
public class AdminLoginController {
    @Resource
    private AdminUserLoginService adminUserLoginService;

    /**
     * 平台管理端登录
     */
    @PostMapping("/in")
    @ApiOperation("平台管理端登录")
    public ResponseResult addLogin(@RequestBody AdminLoginDto loginDto){
        return adminUserLoginService.addLogin(loginDto);
    }


}
